package com.sansan.qiangji.mapper.system;

import com.sansan.qiangji.entity.system.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    List<Role> roleList(Role role);

    Role findByRoleId(@Param("roleId") Integer roleId);

    List<Role> findByRoleName(@Param("roleName") String roleName);

    int addRole(Role role);

    int updateRole(Role role);

    int deleteById(@Param("roleId") Integer roleId);
}
